#include "matrixfilter.h"
#include <iostream>
using namespace std;
MatrixFilter::MatrixFilter()
{
    ConvoluateDialog* dialog = new ConvoluateDialog();
    int res = dialog->exec();

    if(res == 1) {
        width = dialog->nbLigne;
        height = dialog->nbColone;

        matrix = new int*[width];
        for ( int i=0 ; i < width ; i++){
            matrix[i] = new int [height];
        }
        matrix = dialog->valeursTable;
    }
}

MatrixFilter::~MatrixFilter()
{
    delete matrix;
}
